#ifndef _CSOUNDPLAYER_H_
#define _CSOUNDPLAYER_H_

#include "cocos2d.h"

class CSoundPlayer
{
public:
	static CSoundPlayer& sharedPlayer()
	{
		static CSoundPlayer instance;
		return instance;
	}

	void playBackgroundMusic();
	void playEnemyExplosion();
	void playShipExplosion();
	void playBombExplosion();
	void playBombShot();
	void playStandardShot();
	void end();

private:
	unsigned int	__enemyExplosionId;
	unsigned int	__shipExplosionId;
	unsigned int	__bombExplosionId;
	unsigned int	__bombShotId;
	unsigned int	__standardId;

	cocos2d::CCDictionary * __pSounds;

	CSoundPlayer();
	CSoundPlayer(const CSoundPlayer&);
	~CSoundPlayer();
	CSoundPlayer& operator=(const CSoundPlayer&);
	void playSound(cocos2d::CCObject* fileName, unsigned int* soundId = NULL);
};

#endif /* SOUNDPLAYER_H_ */
